<div class="zs-body" data-ng-init="formInit('gztaskview', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{cjsj:1},
        pageSize:10,
        queryObject:{'zt:!=':'rwzt_ywc'}
    }) && initTaskLoadData();setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">任务管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">指派给我的</a>
        </div>
        <div class="option">
            <!--<input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gztaskview') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gztaskview', gztaskview.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gztaskview')"/>-->
            <input type="button" class="zs-btn orange" value="查看" 
                ng-show="tabs['taskmenu'].tabClass['dqr']" ng-click="editRow('gztaskview', gztaskview.sRows[0]) && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="确认" 
                ng-show="tabs['taskmenu'].tabClass['dqr']" ng-click="confirmTask('gztaskview', gztaskview.sRows[0]);" />
            <input type="button" class="zs-btn orange" value="完成" 
                ng-show="tabs['taskmenu'].tabClass['dqr']" ng-click="completeTask('gztaskview', gztaskview.sRows[0]);" />
        </div>
    </div>
    <div class="zs-content" style="position:unset" data-ng-init="setTab('taskmenu', 'dqr')">
        <div class="zs-nice-tab idTabs">
            <div class="link item">
                <!--<a class="selected">待确认</a>
    			<a>已确认</a>-->
                <a class="{{tabs['taskmenu'].tabClass['dqr']}} tips" title="未完成" 
                    ng-click="loadTaskData('gztaskview',{'zt:!=':'rwzt_ywc'},'dqr')">
                    <span>未完成</span>
                </a>
                <a class="{{tabs['taskmenu'].tabClass['yqr']}} tips" title="已完成" 
                    ng-click="loadTaskData('gztaskview',{zt:'rwzt_ywc'},'yqr')">
                    <span>已完成</span>
                </a>
            </div>
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gztaskview.queryObject['xmmc:like']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="主题" ng-model="gztaskview.queryObject['zhuti:like']" />
                </span>
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="负责人" ng-model="gztaskview.queryObject['fzrmc:like']"/>
                </span>-->
                <span class="search-warpper" style="width: 65px;">发布时间
                </span>
                <span class="search-warpper" style="width: 175px;">
                    <ag-Datebox class="zs-input" style="width:175px;height: 28px"
                        ng-model="gztaskview.queryObject['cjsj:>=']">
                    </ag-Datebox>
                </span>-
                <span class="search-warpper" style="width: 175px;">
                    <ag-Datebox class="zs-input" style="width:175px;height: 28px" ng-model="gztaskview.queryObject['cjsj:<=']">
                    </ag-Datebox>
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
                <input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gztaskview')" />
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gztaskview','allCheckbox');" />
                                    </th>
                                    <th>项目名称</th>
                                    <th>主题</th>
                                    <th>备注</th>
                                    <th>发布人名称</th>
                                    <th>发布时间</th>
                                    <th>开始时间</th>
                                    <th>结束时间</th>
                                    <th>状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gztaskview.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gztaskview',r);" ng-model="r.selected" />
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.xmmc"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.zhuti"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.sxsm"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.cjrmc"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.cjsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>

                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.kssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.jssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gztaskview',r) && openWindow('edit');">
                                            <label ng-bind="r.ztName"></label>
                                        </a>
                                    </td>

                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gztaskview'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="日常安排" width='760px' height='410px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td class="text" width="20%">项目名称</td>
                                <td class="left" width="30%" colspan="3">
                                    <label ng-bind="gztaskview.editRow.xmmc" style="width:320px;"></label>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">主题</td>
                                <td class="left" width="30%" colspan="3">
                                    <label ng-bind="gztaskview.editRow.zhuti" style="width:320px;"></label>
                                </td>
                            </tr>

                            <tr>
                                <!--<td class="text" width="20%">单位名称</td>
                                <td class="left" width="30%">
                                	<label ng-bind="gztaskview.editRow.dwmc" style="width:175px;"></label>
                                </td>-->
                                <td class="text" width="20%">部门名称</td>
                                <td class="left" width="30%">
                                    <!--  <ag-Combobox class="zs-input" style="width:172px;height:28px;"
		                        		fn='dptEdit' para="{sn:'department',
		                        				pfn:'orgidEdit',
                    							foreignField:'organizationId',
												defaultQueryObject:{valid:true},
												orderObject:{order:0}}"
				                        ng-model="gztaskview.editRow.bmmc"
				                        text-Value="gztaskview.editRow.bmmcName" />-->
                                    <label ng-bind="gztaskview.editRow.bmmcName"></label>
                                </td>
                                <td class="text" width="20%">负责人</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gztaskview.editRow.fzrmc"></label>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">开始时间</td>
                                <td class="left" width="30%">
                                    <!--<ag-Datebox id='fi_kssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gztaskview.editRow.kssj" >
							   		</ag-Datebox>-->
                                    <label ng-bind="gztaskview.editRow.kssj | asDate | date:'yyyy-MM-dd'"></label>
                                </td>
                                <td class="text" width="20%">结束时间</td>
                                <td class="left" width="30%">
                                    <!--	<ag-Datebox id='fi_jssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gztaskview.editRow.jssj" >
							   		</ag-Datebox>-->
                                    <label ng-bind="gztaskview.editRow.jssj | asDate | date:'yyyy-MM-dd'"></label>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">备注</td>
                                <td class="left" colspan="3">
                                    <textarea type="text" ng-model="gztaskview.editRow.sxsm" class="zs-input" style="width:95%;height: 180px;"
                                        readonly="true"></textarea>
                                </td>
                            </tr>



                            <tr>
                                <td class="text" width="20%">状态</td>
                                <td class="left" width="30%">
                                    <!--<ag-Combotree class="zs-input" style="width:172px;height: 28px" 
										fn='orgidEdit'
										para="{ uDictionary:true,
												dictionary:'p_organization',
												nfn:'dptEdit',
												pidField:'pid',
	                    						leafField:'leaf'}"
										ng-model="gztaskview.editRow.zzjgmc"
										text-Value="gztaskview.editRow.zzjgmcName"/>-->
                                    <label ng-bind="gztaskview.editRow.ztName"></label>
                                </td>
                                <td class="text" width="20%" ng-show="gztaskview.editRow.zt=='rwzt_ywc'">完成时间</td>
                                <td class="left" width="30%" ng-show="gztaskview.editRow.zt=='rwzt_ywc'">
                                    <!--<ag-Datebox id='fi_kssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gztaskview.editRow.kssj" >
							   		</ag-Datebox>-->
                                    <label ng-bind="gztaskview.editRow.wcsj | asDate | date:'yyyy-MM-dd'"></label>
                                </td>
                            </tr>

                            <tr>
                                <td class="text" width="20%">发布人名称</td>
                                <td class="left" width="30%">
                                    <label ng-bind="gztaskview.editRow.cjrmc"></label>
                                </td>
                                <td class="text" width="20%">发布时间</td>
                                <td class="left" width="30%">
                                    <!--<ag-Datebox id='fi_cjsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gztaskview.editRow.cjsj" >
							   		</ag-Datebox>-->
                                    <label ng-bind="gztaskview.editRow.cjsj | asDate | date:'yyyy-MM-dd'"></label>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="已阅读" class="zs-btn c-red" ng-show="gztaskview.editRow.zt=='rwzt_wyd'"
                                        ng-click="confirmTask('gztaskview', gztaskview.editRow)"/>
                                    <input type="button" name="ok" value="完成" class="zs-btn c-red" ng-show="gztaskview.editRow.zt!='rwzt_ywc'"
                                        ng-click="completeTask('gztaskview', gztaskview.editRow)" />
                                    <input type="button" name="ok" value="未完成" class="zs-btn c-green"
										ng-click="changeRwzt('gztaskview', gztaskview.editRow)" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>